package com.turing.post.common.util;

import java.io.Serializable;
import java.math.BigInteger;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 证件类型
 * 
 * @author zxp
 * @Dec 17, 2012
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "IdType")
public class IdType implements Serializable {
	/**
	 * 证件类型编号
	 */
	private BigInteger idTypeId;
	/**
	 * 证件类型类别
	 */
	private String idTypeCategory;
	/**
	 * 证件类型名称
	 */
	private String idTypeName;
	
	/**
	 * 人行上报证件类型编号
	 */
	private String idTypeNo;

	public IdType() {

	}

	@Id
	@Column(name = "IdTypeId", nullable = false)
	public BigInteger getIdTypeId() {
		return this.idTypeId;
	}

	public void setIdTypeId(BigInteger idTypeId) {
		this.idTypeId = idTypeId;
	}

	/**
	 * 个人类型
	 */
	public static final String IDTYPE_CATEGORY_PERSONAL = "0";

	/**
	 * 单位类型
	 */
	public static final String IDTYPE_CATEGORY_ORGANIZATION = "0";

	@Column(name = "IdTypeCategory", nullable = false)
	public String getIdTypeCategory() {
		return this.idTypeCategory;
	}

	public void setIdTypeCategory(String idTypeCategory) {
		this.idTypeCategory = idTypeCategory;
	}

	@Column(name = "IdTypeName", nullable = false)
	public String getIdTypeName() {
		return this.idTypeName;
	}

	public void setIdTypeName(String idTypeName) {
		this.idTypeName = idTypeName;
	}
	
	@Column(name = "idTypeNo")
	public String getIdTypeNo() {
		return idTypeNo;
	}

	public void setIdTypeNo(String idTypeNo) {
		this.idTypeNo = idTypeNo;
	}
	
}